<template>
  <div class="sdy-order-info">
    {{info}}
      <van-button  @click="confirmOrderHandler" type="danger">
      确定订单信息
    </van-button>
  </div>

</template>

<script setup lang="ts">
  import { defineProps,defineEmits } from 'vue';
  import { ConfigOrderInfoApi } from '@/api/order'
  import { Toast } from 'vant'

 const{ info }=defineProps<{info:any}>()

 const emits = defineEmits(['finish'])

 const confirmOrderHandler=async()=>{
    const res=await ConfigOrderInfoApi(info.userid,info.time)
   
    if (((res as unknown) as { code: string }).code === '200') {
    // Toast({ message: '确认订单成功' })
    emits('finish')
  }
 }
</script>

 <style scoped lang="scss">
</style>